package org.dingfugui.triple.demo.consumer;

import org.dingfugui.triple.context.DefaultConsumerContext;
import org.dingfugui.triple.demo.api.FooService;

import java.io.IOException;

/**
 * @author fugui.ding at 2015/6/17
 */
public class Consumer {
    public static void main(String[] args) throws IOException {
        DefaultConsumerContext ctx = new DefaultConsumerContext("127.0.0.1");

        FooService foo = ctx.buildConsumer(FooService.class);

        System.out.println(foo.foo("hehe"));

        ctx.close();

    }
}
